// JavaScript Document
Cufon.replace('h1, h2, h3, h4', { color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '1px 1px #000' });
	Cufon.replace('h5, h6', { textShadow: '1px 1px #000' });
	Cufon.replace('#aside h5, #aside h6', { textShadow: '1px 1px #fff' });
	Cufon.replace('#breadcrumbs h1', { color: '-linear-gradient(#0e0e0e, #202020)', textShadow: '1px 1px #fff' });
	Cufon.replace('h1 span.fl', { color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000' });
	Cufon.replace('#breadcrumbs h1 span.fl', {color: '-linear-gradient(#000, #000)'});
	Cufon.replace('.desc h4', { color: '-linear-gradient(#0e0e0e, #202020)' });
	Cufon('#mainmenu > li:not(.act) > a', {
		color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '1px 1px #000',
		hover: {
			color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000'
		}
	});
	Cufon.replace('#mainmenu > li.act > a', {
			color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000',
			hover: {
				color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000'
			}
	});
	Cufon.replace('.green .message-box-title', {
			color: '-linear-gradient(#326f0e, #326f0e)'
	});
	Cufon.replace('.red .message-box-title', {
			color: '-linear-gradient(#9a1d29, #9a1d29)'
	});
	Cufon.replace('.blue .message-box-title', {
			color: '-linear-gradient(#0f6495, #0f6495)'
	});
	Cufon.replace('.orange .message-box-title', {
			color: '-linear-gradient(#c35c00, #c35c00)'
	});
	Cufon.replace('.grey .message-box-title', {
			color: '-linear-gradient(#6a6a6a, #6a6a6a)'
	});

	/*Cufon('.pages > a', {
		color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '0px -1px #000',
		hover: {
			color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '0px -1px #5b1b25'
		}
	});*/
	/*Cufon.replace('.pages > a.act', {
			color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '0px -1px #5b1b25'
	});*/
	   /* 
      Цвет меню 
   */
/*   
   $("#mainmenu li.act").addClass("active");
   
   var n=0;
   $("#mainmenu > li").each(function () {
      $(this).find("a:eq(0)").attr("id", "m"+(++n));
   });
   $("#mainmenu > li").mouseover(function () {
      if ( $(this).hasClass('active') )
         return;
      Cufon.replace('#'+$(this).find("a:eq(0)").attr("id"), {
		      color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000'
      });
   });
   $("#mainmenu > li").mouseout(function () {
      if ( $(this).hasClass('active') )
         return;
      Cufon.replace('#'+$(this).find("a:eq(0)").attr("id"), {
		   color: '-linear-gradient(#b8b4b1, #edebe8)', textShadow: '1px 1px #000',
		   hover: {
			   color: '-linear-gradient(#ffcf0e, #ffe535)', textShadow: '1px 1px #000'
		   }
      });
   });*/
      
   /*
      End: цвет меню
   */